package com.ourteam.system.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:20
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class SysResourceProperty implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String resourcePropertyCode;

    /**
     * Attribute resourcePropertyCode Be Seted Falg
     */
    private boolean resourcePropertyCodeSetted = false;

    /**
    * Attribute resourcePropertyCode is Null Falg
    */
    private boolean resourcePropertyCodeNull = false;
    private String resourcePropertyDefaultValue;

    /**
     * Attribute resourcePropertyDefaultValue Be Seted Falg
     */
    private boolean resourcePropertyDefaultValueSetted = false;

    /**
    * Attribute resourcePropertyDefaultValue is Null Falg
    */
    private boolean resourcePropertyDefaultValueNull = false;
    private String resourcePropertyName;

    /**
     * Attribute resourcePropertyName Be Seted Falg
     */
    private boolean resourcePropertyNameSetted = false;

    /**
    * Attribute resourcePropertyName is Null Falg
    */
    private boolean resourcePropertyNameNull = false;
    private Integer resourcePropertyOrder;

    /**
     * Attribute resourcePropertyOrder Be Seted Falg
     */
    private boolean resourcePropertyOrderSetted = false;

    /**
    * Attribute resourcePropertyOrder is Null Falg
    */
    private boolean resourcePropertyOrderNull = false;
    private String resourcePropertyType;

    /**
     * Attribute resourcePropertyType Be Seted Falg
     */
    private boolean resourcePropertyTypeSetted = false;

    /**
    * Attribute resourcePropertyType is Null Falg
    */
    private boolean resourcePropertyTypeNull = false;
    private String resourcePropertyValue;

    /**
     * Attribute resourcePropertyValue Be Seted Falg
     */
    private boolean resourcePropertyValueSetted = false;

    /**
    * Attribute resourcePropertyValue is Null Falg
    */
    private boolean resourcePropertyValueNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private Long sysResourceId;

    /**
     * Attribute sysResourceId Be Seted Falg
     */
    private boolean sysResourceIdSetted = false;

    /**
    * Attribute sysResourceId is Null Falg
    */
    private boolean sysResourceIdNull = false;

    public SysResourceProperty() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get resourcePropertyCode
         *
         * @return String
         */
    final public String getResourcePropertyCode() {
        if (isResourcePropertyCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(resourcePropertyCode);
        }
    }

    /**
     * Set resourcePropertyCode
     *
     * @param String
     */
    final public void setResourcePropertyCode(String resourcePropertyCode) {
        this.resourcePropertyCode = StringUtils.trim(resourcePropertyCode);

        this.resourcePropertyCodeSetted = true;

        this.setResourcePropertyCodeNull(this.resourcePropertyCode == null);
    }

    /**
     * Get resourcePropertyCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isResourcePropertyCodeSetted() {
        return this.resourcePropertyCodeSetted;
    }

    /**
     * Set resourcePropertyCode Null
     *
     */
    final public void setResourcePropertyCodeNull() {
        this.resourcePropertyCodeNull = true;
    }

    final public void setResourcePropertyCodeNull(boolean aNullFlag) {
        this.resourcePropertyCodeNull = aNullFlag;
    }

    final public boolean isResourcePropertyCodeNull() {
        return this.resourcePropertyCodeNull;
    }

    /**
         * Get resourcePropertyDefaultValue
         *
         * @return String
         */
    final public String getResourcePropertyDefaultValue() {
        if (isResourcePropertyDefaultValueNull()) {
            return null;
        } else {
            return StringUtils.trim(resourcePropertyDefaultValue);
        }
    }

    /**
     * Set resourcePropertyDefaultValue
     *
     * @param String
     */
    final public void setResourcePropertyDefaultValue(
        String resourcePropertyDefaultValue) {
        this.resourcePropertyDefaultValue = StringUtils.trim(resourcePropertyDefaultValue);

        this.resourcePropertyDefaultValueSetted = true;

        this.setResourcePropertyDefaultValueNull(this.resourcePropertyDefaultValue == null);
    }

    /**
     * Get resourcePropertyDefaultValue Has Been Setted
     *
     * @return boolean
     */
    final public boolean isResourcePropertyDefaultValueSetted() {
        return this.resourcePropertyDefaultValueSetted;
    }

    /**
     * Set resourcePropertyDefaultValue Null
     *
     */
    final public void setResourcePropertyDefaultValueNull() {
        this.resourcePropertyDefaultValueNull = true;
    }

    final public void setResourcePropertyDefaultValueNull(boolean aNullFlag) {
        this.resourcePropertyDefaultValueNull = aNullFlag;
    }

    final public boolean isResourcePropertyDefaultValueNull() {
        return this.resourcePropertyDefaultValueNull;
    }

    /**
         * Get resourcePropertyName
         *
         * @return String
         */
    final public String getResourcePropertyName() {
        if (isResourcePropertyNameNull()) {
            return null;
        } else {
            return StringUtils.trim(resourcePropertyName);
        }
    }

    /**
     * Set resourcePropertyName
     *
     * @param String
     */
    final public void setResourcePropertyName(String resourcePropertyName) {
        this.resourcePropertyName = StringUtils.trim(resourcePropertyName);

        this.resourcePropertyNameSetted = true;

        this.setResourcePropertyNameNull(this.resourcePropertyName == null);
    }

    /**
     * Get resourcePropertyName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isResourcePropertyNameSetted() {
        return this.resourcePropertyNameSetted;
    }

    /**
     * Set resourcePropertyName Null
     *
     */
    final public void setResourcePropertyNameNull() {
        this.resourcePropertyNameNull = true;
    }

    final public void setResourcePropertyNameNull(boolean aNullFlag) {
        this.resourcePropertyNameNull = aNullFlag;
    }

    final public boolean isResourcePropertyNameNull() {
        return this.resourcePropertyNameNull;
    }

    /**
         * Get resourcePropertyOrder
         *
         * @return Integer
         */
    final public Integer getResourcePropertyOrder() {
        return resourcePropertyOrder;
    }

    /**
     * Set resourcePropertyOrder
     *
     * @param Integer
     */
    final public void setResourcePropertyOrder(Integer resourcePropertyOrder) {
        this.resourcePropertyOrder = resourcePropertyOrder;

        this.resourcePropertyOrderSetted = true;

        this.setResourcePropertyOrderNull(this.resourcePropertyOrder == null);
    }

    /**
     * Get resourcePropertyOrder Has Been Setted
     *
     * @return boolean
     */
    final public boolean isResourcePropertyOrderSetted() {
        return this.resourcePropertyOrderSetted;
    }

    /**
     * Set resourcePropertyOrder Null
     *
     */
    final public void setResourcePropertyOrderNull() {
        this.resourcePropertyOrderNull = true;
    }

    final public void setResourcePropertyOrderNull(boolean aNullFlag) {
        this.resourcePropertyOrderNull = aNullFlag;
    }

    final public boolean isResourcePropertyOrderNull() {
        return this.resourcePropertyOrderNull;
    }

    /**
         * Get resourcePropertyType
         *
         * @return String
         */
    final public String getResourcePropertyType() {
        if (isResourcePropertyTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(resourcePropertyType);
        }
    }

    /**
     * Set resourcePropertyType
     *
     * @param String
     */
    final public void setResourcePropertyType(String resourcePropertyType) {
        this.resourcePropertyType = StringUtils.trim(resourcePropertyType);

        this.resourcePropertyTypeSetted = true;

        this.setResourcePropertyTypeNull(this.resourcePropertyType == null);
    }

    /**
     * Get resourcePropertyType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isResourcePropertyTypeSetted() {
        return this.resourcePropertyTypeSetted;
    }

    /**
     * Set resourcePropertyType Null
     *
     */
    final public void setResourcePropertyTypeNull() {
        this.resourcePropertyTypeNull = true;
    }

    final public void setResourcePropertyTypeNull(boolean aNullFlag) {
        this.resourcePropertyTypeNull = aNullFlag;
    }

    final public boolean isResourcePropertyTypeNull() {
        return this.resourcePropertyTypeNull;
    }

    /**
         * Get resourcePropertyValue
         *
         * @return String
         */
    final public String getResourcePropertyValue() {
        if (isResourcePropertyValueNull()) {
            return null;
        } else {
            return StringUtils.trim(resourcePropertyValue);
        }
    }

    /**
     * Set resourcePropertyValue
     *
     * @param String
     */
    final public void setResourcePropertyValue(String resourcePropertyValue) {
        this.resourcePropertyValue = StringUtils.trim(resourcePropertyValue);

        this.resourcePropertyValueSetted = true;

        this.setResourcePropertyValueNull(this.resourcePropertyValue == null);
    }

    /**
     * Get resourcePropertyValue Has Been Setted
     *
     * @return boolean
     */
    final public boolean isResourcePropertyValueSetted() {
        return this.resourcePropertyValueSetted;
    }

    /**
     * Set resourcePropertyValue Null
     *
     */
    final public void setResourcePropertyValueNull() {
        this.resourcePropertyValueNull = true;
    }

    final public void setResourcePropertyValueNull(boolean aNullFlag) {
        this.resourcePropertyValueNull = aNullFlag;
    }

    final public boolean isResourcePropertyValueNull() {
        return this.resourcePropertyValueNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get sysResourceId
         *
         * @return Long
         */
    final public Long getSysResourceId() {
        return sysResourceId;
    }

    /**
     * Set sysResourceId
     *
     * @param Long
     */
    final public void setSysResourceId(Long sysResourceId) {
        this.sysResourceId = sysResourceId;

        this.sysResourceIdSetted = true;

        this.setSysResourceIdNull(this.sysResourceId == null);
    }

    /**
     * Get sysResourceId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysResourceIdSetted() {
        return this.sysResourceIdSetted;
    }

    /**
     * Set sysResourceId Null
     *
     */
    final public void setSysResourceIdNull() {
        this.sysResourceIdNull = true;
    }

    final public void setSysResourceIdNull(boolean aNullFlag) {
        this.sysResourceIdNull = aNullFlag;
    }

    final public boolean isSysResourceIdNull() {
        return this.sysResourceIdNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof SysResourceProperty) == false) {
            return false;
        }

        SysResourceProperty other = (SysResourceProperty) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("resourcePropertyCode=");
        buffer.append(this.resourcePropertyCode);

        buffer.append("resourcePropertyDefaultValue=");
        buffer.append(this.resourcePropertyDefaultValue);

        buffer.append("resourcePropertyName=");
        buffer.append(this.resourcePropertyName);

        buffer.append("resourcePropertyOrder=");
        buffer.append(this.resourcePropertyOrder);

        buffer.append("resourcePropertyType=");
        buffer.append(this.resourcePropertyType);

        buffer.append("resourcePropertyValue=");
        buffer.append(this.resourcePropertyValue);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("sysResourceId=");
        buffer.append(this.sysResourceId);

        buffer.append("]");

        return buffer.toString();
    }
}
